module MC.Order {
    export class ComCheckLishi {
        public constructor() {
            this.init();
        }

        private pagelist: MC.Page;

        private init() {
            let out_trade_no = MC.get('out_trade_no');
            this.pagelist = new MC.Page("#jobPage", 'comCheck_lishi', {out_trade_no: out_trade_no}, (resData: any, page: any) => {
                console.log(resData, page);
                for (let i = 0; i < resData.length; i++) {
                    let one=resData[i];
                    let li = ` <li class="li">
                        <div class="checkDiv ">
                            <div class="ccontent clearfix">
                                <a class="deteDiv" href="/h5/order/comCheck.html?out_trade_no=`+one.out_trade_no
                        +`&lishiid=`+one.id+`">
                                    <p class="date">`+(one.created_at)+`</p>
                                    <span class="desc">预计完成时间:`+(one.finishTime)+`</span>
                                </a>
                                <span class="wanchengdu">`+one.wanchengdu+`%</span>
                            </div>
                            <a class="jidnuico"><i class="ico" style="width:`+one.wanchengdu+`%"></i></a>
                        </div>
                    </li>`;
                    $('.checklistDiv .checklistUl').append(li);
                }
            });

            this.pagelist.init();
            console.log('2');

        }
    }
}